package com.pmcc.cj.repository;

import com.pmcc.cj.entity.CjTrainDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by tomas on 2020/9/12.
 */
public interface CjTrainDetailRepository extends JpaRepository<CjTrainDetail,String> {
    List<CjTrainDetail> findByTrainId(String trainId);
    CjTrainDetail findByTrainIdAndEmployeeId(String trainId,String employeeId);
}
